/**
 * user modules
 */

//state
const state = {
    list:[]
}



// actions
const actions = {   
    getAllTodos(context:any,payload:any){
        context.commit("setAllTodos",payload);
    }
}

// mutations
const mutations = {
    setAllTodos(state:any,payload:any){
        state.list=payload;
    }
}

export default {
    namespaced: true,
    state,
    actions,
    mutations
}